package com.woniu.cms.goods.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 领料单附属的材料表，领料单材料详情页所显示的材料信息
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-18
 */
@Getter
@Setter
  @TableName("cms_goods_outbill_material")
@ApiModel(value = "GoodsOutbillMaterial对象", description = "领料单附属的材料表，领料单材料详情页所显示的材料信息")
public class GoodsOutbillMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("物资编号")
      private String goodsCode;

      @ApiModelProperty("物资名称")
      private String goodsName;

      @ApiModelProperty("规格型号")
      private String modelName;

      @ApiModelProperty("单位")
      private String outbillUnit;

      @ApiModelProperty("领料数量")
      private BigDecimal outbillNum;

      @ApiModelProperty("单价")
      private BigDecimal outbillPrice;

      @ApiModelProperty("领料总金额")
      private BigDecimal outbillMoney;

      @ApiModelProperty("出料凭证编号")
      private String outCode;

      @ApiModelProperty("备注")
      private String remarks;

      @ApiModelProperty("物资类型（0-甲供，1-乙供）")
      private Integer materialType;

      @ApiModelProperty("领料单外键")
      private Integer outbillId;

      @ApiModelProperty("有效数量（领料数量+退回数量-已结算数量-回缴数量）")
      private BigDecimal realNum;

      @ApiModelProperty("入库单外键")
      private Integer getbillId;

      @ApiModelProperty("入库材料单外键")
      private Integer getbillMaterialId;

}
